.PHONY: all
all: build/Makefile
	$(MAKE) -C build

build/Makefile:
	mkdir -p build
	cd build && cmake ..

.PHONY: clean
clean:
	$(MAKE) -C build clean

.PHONY: distclean
distclean:
	rm -rf build

.PHONY: install
install: build/Makefile
	$(MAKE) -C build install

.PHONY: uninstall
uninstall: build/install_manifest.txt
	cat build/install_manifest.txt | xargs rm
